package com.baizhi.springboot.entity;

import java.io.Serializable;
import java.util.List;

public class Menu implements Serializable {
    /*`menu_id` int(11) NOT NULL AUTO_INCREMENT,
  `menu_name` varchar(50) DEFAULT NULL,
  `menu_url` varchar(500) DEFAULT NULL,
  `menu_parent_id` int(11) DEFAULT NULL,*/
    private Integer id;
    private String name;
    private String url;
    private List<Menu> secondMenu;

    @Override
    public String toString() {
        return "Menu{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", url='" + url + '\'' +
                ", secondMenu=" + secondMenu +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public List<Menu> getSecondMenu() {
        return secondMenu;
    }

    public void setSecondMenu(List<Menu> secondMenu) {
        this.secondMenu = secondMenu;
    }

    public Menu() {
    }

    public Menu(Integer id, String name, String url, List<Menu> secondMenu) {
        this.id = id;
        this.name = name;
        this.url = url;
        this.secondMenu = secondMenu;
    }
}
